using System.Configuration;

namespace Common.Configuration.Mongo
{
    public class HostsCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new HostElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((HostElement)element).HostName;
        }
    }
}